using System;
using System.Collections.Generic;

namespace DataLite.Values
{
    public class ColumnInfoVO
    {
        int cid;
        public int Cid
        {
            get { return cid; }
            set { cid = value; }
        }

        string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        string attName;
        public string AttName
        {
            get { return attName; }
            set { attName = value; }
        }

        public string NameInUpper { get { return name.ToUpper(); } }

        string type;
        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        string type2;
        public string Type2
        {
            get { return type2; }
            set { type2 = value; }
        }

        public string Type2Cap 
        {
            get 
            {
                string oType = char.ToUpper(type2[0]) + type2.Substring(1, type2.Length - 1); 
                oType = oType.Replace("[]", "Arr");
                return oType;
            } 
        }

        int notNull;
        public int NotNull
        {
            get { return notNull; }
            set { notNull = value; }
        }

        string dfltValue;
        public string DfltValue
        {
            get { return dfltValue; }
            set { dfltValue = value; }
        }

        int pk;
        public int Pk
        {
            get { return pk; }
            set { pk = value; }
        }
    }
}
